﻿<%@ Page Title="Members Details" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Details.aspx.vb" Inherits="details" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
    <p>
        <br />
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="SqlDataSource1" AllowSorting="True" 
            style="margin-left: 16px" BorderColor="#CCCCFF" HorizontalAlign="Center" 
            Width="800px">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                    ReadOnly="True" SortExpression="ID" />
                <asp:BoundField DataField="FirstName" HeaderText="FirstName" 
                    SortExpression="FirstName" />
                <asp:BoundField DataField="LastName" HeaderText="LastName" 
                    SortExpression="LastName" />
                <asp:BoundField DataField="Address" HeaderText="Address" 
                    SortExpression="Address" />
                <asp:BoundField DataField="Phone" HeaderText="Phone" SortExpression="Phone" />
                <asp:BoundField DataField="AboutMe" HeaderText="AboutMe" 
                    SortExpression="AboutMe" />
                <asp:ImageField DataImageUrlField="Photo" HeaderText="Photo">
                    <ControlStyle CssClass="memberPhoto" />
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SingleMomMemberConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:SingleMomMemberConnectionString.ProviderName %>" 
            SelectCommand="SELECT [ID], [FirstName], [LastName], [Address], [Phone], [AboutMe], [Photo] FROM [Members] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>

